package net.mysoft.budgetsoft.system.domain.comparator;

import java.util.Comparator;

import net.mysoft.budgetsoft.system.pagemodel.CaiDan;

public class PCaiDanComparator implements Comparator<CaiDan> {

	@Override
	public int compare(CaiDan o1, CaiDan o2) {
		int i1 = o1.getShunXu() != null ? o1.getShunXu().intValue() : -1;
		int i2 = o2.getShunXu() != null ? o2.getShunXu().intValue() : -1;
		return i1 - i2;
	}
}
